package org.magento.pages;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

/*This class describes  shopping cart checkout  page 
 * On this page user is able to manage products in shopping cart 
 * add discount coupons and estimate shipping and chart 
 /checkout/cart   */

public class ShoppingCart extends Page {
	
	//Locators 
	@FindBy(xpath ="descendant::ul[@class='checkout-types']/li/button")
    public WebElement proceedToCheckoutButtonTop;
		
	//Actions 
	public ShoppingCartStepOne proceedToCheckOut() {
		proceedToCheckoutButtonTop.click();
		return PageFactory.initElements(driver, ShoppingCartStepOne.class);
	}
	
	//Assertions
	
	// Auto-generated
	public ShoppingCart(WebDriver driver) {
		super(driver);
	}

	@Override
	public void open() {
	}

}
